import http from '@/utils/http2.js'
import expand from "@iconify-icons/ep/expand.js";

/**
 * 询价列表查询
 * @param data
 * @returns {*}
 */
export function queryForwarderInquiry(data) {
  return http.post("/api/inquiry/list", data);
}

/**
 * 询价新增
 * @param data
 * @returns{*}
 */
export function saveForwarderInquiry(data) {
  return http.post("/api/inquiry", data);
}
/**
 * 询价修改
 * @param data
 * @returns{*}
 */
export function updateForwarderInquiry(data) {
  return http.put("/api/inquiry/update", data);
}

/**
 * 通过询价编码查询询价
 * @param quote_coding
 * @returns{*}
 */
export function queryForwarderInquiryDetail(quote_coding) {
  return http.get("/api/inquiry/select", {quote_coding});
}

/**
 * 列表查询报价
 * @param data
 * @returns {*}
 */
export function queryForwarderQuote(data) {
  return http.post("/api/destination/list", data);
}

/**
 * 保存报价
 * @param data
 * @returns{*}
 */
export function saveForwarderQuote(data) {
  return http.post("/api/destination", data);
}
/**
 * 修改报价
 * @param data
 * @returns{*}
 */
export function updateForwarderQuote(data) {
  return http.put("/api/destination/update", data);
}

/**
 * 通过报价编码查询询价
 * @param destination_coding
 * @returns{*}
 */
export function queryQuoteDetail(destination_coding){
  return http.get("/api/destination/select", {destination_coding})
}
